home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 24
/
Amiga Format AFCD24 (Feb 1998, Issue 108).iso
/
-seriously_amiga-
/
shareware
/
programming
/
c
/
amivogl-mdev
/
src
/
getgp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-01-12
|
654b
|
40 lines
#include "vogl.h"
/*
* getgp
*
* return the current (x, y, z) graphics position
*/
void getgp(
Coord *x,
Coord *y,
Coord *z)
{
*x = vdevice.cpW[V_X];
*y = vdevice.cpW[V_Y];
*z = vdevice.cpW[V_Z];
}
/* ------------------------------------------------------------------------ */
/*
* getgpos
*
* Get the current graphics position after transformation by
* the current matrix.
*/
void getgpos(
Coord *x,
Coord *y,
Coord *z,
Coord *w)
{
*x = vdevice.cpWtrans[V_X];
*y = vdevice.cpWtrans[V_Y];
*z = vdevice.cpWtrans[V_Z];
*w = vdevice.cpWtrans[V_W];
}
/* ------------------------------------------------------------------------ */